﻿using UnityEngine;
using System.Collections;

public class LogoByMove : MonoBehaviour {

    private float x;

    void Awake()
    {
        x = transform.position.x;
    }
	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {
        x -= 0.05f;
        if (x <= -0.6)
        {
            x = 0.5f;
        }

        transform.position = new Vector3(x, transform.position.y, transform.position.z);
    }
}
